/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

#define _DEF_CCY_CODE
#define _ZZDEBUG
#define _PROJ_DC

#region Using directives

using System;
using System.Text;
using System.IO;
using System.Xml;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Reflection;
using System.Web;
using System.Web.UI;

using Muki.Framework;
using Muki.Framework.UI;
using Muki.Framework.Business;
using Muki.Framework.Util;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

using Dot.Tmpl;
using Dot.Tmpl.Parser;

#endregion

namespace Muki.UserPanel
{

	public class UID02803AV
	{
		public UID02803AV()
		{
		}

		public void setValue()
		{

				_lnk_RW_NO=ZZGeneral.XRequest("lnk_RW_NO");
				if (ZZGeneral.XRequest("lnk_UID_CODE_DAT")!="")
				{
					_Wxf = new Wxf();
					_Wxf.Parser(System.Web.HttpUtility.UrlDecode(ZZGeneral.XRequest("lnk_UID_CODE_DAT")));
					_Wxf.Open();

					ZZTrace.WriteToFile(this.APP_PATH+"\\temp\\UID02803A2.js",_Wxf.ToString());
					_lnk_MODE="B";
				}

					_UID02803AEntity.SO_NO = _Convert.ToString(objSORHDTM_SO_NO.Text);
					if (_STATUS_DATA["IsPostBack"]=="")
					{
						if (ZZGeneral.XRequest("lnk_SORHDTM_SO_NO")!="")
						{
							_UID02803AEntity.SO_NO = ZZGeneral.XRequest("lnk_SORHDTM_SO_NO");
						}
					}

					_UID02803AEntity.ODTP_XREV = _Convert.ToInt(objSORHDTM_ODTP_XREV.Text);

					_UID02803AEntity.ODTP_STATUS = _Convert.ToString(objSORHDTM_ODTP_STATUS.Text);

					_UID02803AEntity.ODTP_CODE = _Convert.ToString(objSORHDTM_ODTP_CODE.Text);

					_UID02803AEntity.COMP_CODE = _Convert.ToString(objSORHDTM_COMP_CODE.Text);

					_UID02803AEntity.SALES_CODE = _Convert.ToString(objSORHDTM_SALES_CODE.Text);

					_UID02803AEntity.BPN_CODE = _Convert.ToString(objSORHDTM_BPN_CODE.Text);

					_UID02803AEntity.BPN_NAME01 = _Convert.ToString(objVARIABLE_BPN_NAME01.Text);

					_UID02803AEntity.CUS_TERM = _Convert.ToString(objSORHDTM_CUS_TERM.Text);

					_UID02803AEntity.SO_REQ_DATE = _Convert.ToDateTime(objSORHDTM_SO_REQ_DATE.Text);

					_UID02803AEntity.CCY_CODE = _Convert.ToString(objSORHDTM_CCY_CODE.Text);

					_UID02803AEntity.PTERM_CODE = _Convert.ToString(objSORHDTM_PTERM_CODE.Text);

					_UID02803AEntity.CUS_ORD = _Convert.ToString(objSORHDTM_CUS_ORD.Text);

					_UID02803AEntity.XCHG_RATE = _Convert.ToDecimal(objSORHDTM_XCHG_RATE.Text);

					_UID02803AEntity.DELY_CODE = _Convert.ToString(objSORHDTM_DELY_CODE.Text);

					_UID02803AEntity.REGN_CODE = _Convert.ToString(objSORHDTM_REGN_CODE.Text);

					_UID02803AEntity.SVIA_CODE = _Convert.ToString(objSORHDTM_SVIA_CODE.Text);

					_UID02803AEntity.CUS_REFX = _Convert.ToString(objSORHDTM_CUS_REFX.Text);

					_UID02803AEntity.ORG_CTRY = _Convert.ToString(objSORHDTM_ORG_CTRY.Text);

					_UID02803AEntity.ORG_CERT = _Convert.ToString(objSORHDTM_ORG_CERT.Text);

					_UID02803AEntity.DISCOUNT_RATE = _Convert.ToDecimal(objSORHDTM_DISCOUNT_RATE.Text);

					_UID02803AEntity.TAX_RATE = _Convert.ToDecimal(objSORHDTM_TAX_RATE.Text);

					_UID02803AEntity.SO_ODTP_RMKS = _Convert.ToString(objSORHDTM_SO_ODTP_RMKS.Text);

		}

		public void getValue()
		{
					_STATUS_DATA["UID02803A","PK_SO_NO"]=_Convert.ToString(_UID02803AEntity.SO_NO);

					objSORHDTM_SO_NO.Text=_Convert.ToString(_UID02803AEntity.SO_NO);
					objSORHDTM_ODTP_XREV.Text=_Convert.ToString(_UID02803AEntity.ODTP_XREV);
					objSORHDTM_ODTP_STATUS.Text=_Convert.ToString(_UID02803AEntity.ODTP_STATUS);
					objSORHDTM_ODTP_CODE.Text=_Convert.ToString(_UID02803AEntity.ODTP_CODE);
					objSORHDTM_COMP_CODE.Text=_Convert.ToString(_UID02803AEntity.COMP_CODE);
					objSORHDTM_SALES_CODE.Text=_Convert.ToString(_UID02803AEntity.SALES_CODE);
					objSORHDTM_BPN_CODE.Text=_Convert.ToString(_UID02803AEntity.BPN_CODE);
					objVARIABLE_BPN_NAME01.Text=_Convert.ToString(_UID02803AEntity.BPN_NAME01);
					objSORHDTM_CUS_TERM.Text=_Convert.ToString(_UID02803AEntity.CUS_TERM);
					objSORHDTM_SO_REQ_DATE.Text=_Convert.ToString(_UID02803AEntity.SO_REQ_DATE);
					objSORHDTM_CCY_CODE.Text=_Convert.ToString(_UID02803AEntity.CCY_CODE);
					objSORHDTM_PTERM_CODE.Text=_Convert.ToString(_UID02803AEntity.PTERM_CODE);
					objSORHDTM_CUS_ORD.Text=_Convert.ToString(_UID02803AEntity.CUS_ORD);
					objSORHDTM_XCHG_RATE.Text=_Convert.ToString(_UID02803AEntity.XCHG_RATE);
					objSORHDTM_DELY_CODE.Text=_Convert.ToString(_UID02803AEntity.DELY_CODE);
					objSORHDTM_REGN_CODE.Text=_Convert.ToString(_UID02803AEntity.REGN_CODE);
					objSORHDTM_SVIA_CODE.Text=_Convert.ToString(_UID02803AEntity.SVIA_CODE);
					objSORHDTM_CUS_REFX.Text=_Convert.ToString(_UID02803AEntity.CUS_REFX);
					objSORHDTM_ORG_CTRY.Text=_Convert.ToString(_UID02803AEntity.ORG_CTRY);
					objSORHDTM_ORG_CERT.Text=_Convert.ToString(_UID02803AEntity.ORG_CERT);
					objSORHDTM_DISCOUNT_RATE.Text=_Convert.ToString(_UID02803AEntity.DISCOUNT_RATE);
					objSORHDTM_TAX_RATE.Text=_Convert.ToString(_UID02803AEntity.TAX_RATE);
					objSORHDTM_SO_ODTP_RMKS.Text=_Convert.ToString(_UID02803AEntity.SO_ODTP_RMKS);

				objSORHDTM_USECURITY_CODE1.Text=_UID02803AEntity.USECURITY_CODE1;
							objSORHDTM_USECURITY_CODE2.Text=_UID02803AEntity.USECURITY_CODE2;
							objSORHDTM_USECURITY_CODE3.Text=_UID02803AEntity.USECURITY_CODE3;
							objSORHDTM_USECURITY_CODE4.Text=_UID02803AEntity.USECURITY_CODE4;
							objSORHDTM_USECURITY_CODE5.Text=_UID02803AEntity.USECURITY_CODE5;
							objSORHDTM_USECURITY_CODE6.Text=_UID02803AEntity.USECURITY_CODE6;
			
			objSORHDTM_USECURITY_RIGHT.Text = _UID02803AEntity.USECURITY_RIGHT.ToString();
			objSORHDTM_UZADD_DATE.Text      = _UID02803AEntity.UZADD_DATE;
			objSORHDTM_UZADD_USER.Text      = _UID02803AEntity.UZADD_USER;
			objSORHDTM_UZCHG_DATE.Text      = _UID02803AEntity.UZCHG_DATE;
			objSORHDTM_UZCHG_USER.Text      = _UID02803AEntity.UZCHG_USER;
		}

		public void OnInit(HttpContext  objHttpContext)		
		{

			this.UID_CODE = "UID02803A";
			this.DbName = ZZGeneral.DbName();

				_STATUS_DATA.UID_CODE="UID02803A";
			_STATUS_DATA.OnInit(objHttpContext);

			_STATUS_DATA["lnk_UID_CODE"] = "UID02803A";
			_STATUS_DATA["UID02803A","USQL_CODE"] = "QID02803A";

			this.ZZEventStatus      = _STATUS_DATA["ZZEventStatus"];
			this.ZZEventMode        = _STATUS_DATA["ZZEventMode"];
			this.ZZEventArgs        = _STATUS_DATA["ZZEventArgs"];
			this.ZZEventOpts        = _STATUS_DATA["ZZEventOpts"];
			this.ZZLOGON_SSD        = _STATUS_DATA["ZZLOGON_SSD"];
			this.ZZLOGON_LANG       = _STATUS_DATA["ZZLOGON_LANG"];
			this.ZZMODEL_DATA       = _STATUS_DATA["ZZMODEL_DATA"];

			this.ZZVIEW_STATUS_CODE = _STATUS_DATA["UID02803A","ZZVIEW_STATUS_CODE"];
			this.ZZVIEW_MODE_CODE   = _STATUS_DATA["UID02803A","ZZVIEW_MODE_CODE"];

			ZZTrace.Debug(ZFILE_NAME,"...123456...---"+this.ZZLOGON_SSD);
			ZZTrace.Debug(ZFILE_NAME,".ZZMODEL_DATA-"+this.ZZMODEL_DATA);
			ZZTrace.Debug(ZFILE_NAME,".ZZVIEW_MODE_CODE-"+this.ZZVIEW_MODE_CODE);
			ZZTrace.Debug(ZFILE_NAME,".ZZVIEW_STATUS_CODE-"+this.ZZVIEW_STATUS_CODE);

			this.Trans = new StreamContext(this.DbName);

			XLiveManagement oXLiveManagement=XLiveManagement.getInstance();
			oXLiveManagement.DbName=this.DbName;
			this.ZZLOGON_ID=oXLiveManagement[this.ZZLOGON_SSD].getValue("LOGON_ID");

			if (this.ZZLOGON_LANG=="")
			{
				this.ZZLOGON_LANG=oXLiveManagement[this.ZZLOGON_SSD].getValue("LOGON_LANG");
			}

			ZZTrace.Debug(ZFILE_NAME,"...123456...---"+this.ZZLOGON_LANG);

			_STATUS_DATA["ZZLOGON_LANG"] = this.ZZLOGON_LANG;

			_Convert.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_Convert.Trans       = this.Trans;

			_Captions             = new ZZCaptions();
			_Captions.DbName      = this.DbName;
			_Captions.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_Captions.ZZLOGON_SSD = this.ZZLOGON_SSD;

			_DocsPermission.Trans = this.Trans;

			dbTab objdbTab       = new dbTab();
			objdbTab.UID_CODE    = this.UID_CODE;
			objdbTab.Trans       = this.Trans;
			objdbTab.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objdbTab.ZZLOGON_SSD = this.ZZLOGON_SSD;
			objdbTab.Create();

			objWebPanels=objdbTab.Panels;

			oWindow.AddPanels(objWebPanels);
			oWindow.Trans       = this.Trans;
			oWindow.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oWindow.ZZLOGON_LANG  = this.ZZLOGON_LANG;

			Muki.Framework.ZZSetting oZZSetting = new Muki.Framework.ZZSetting();
			oZZSetting.Trans=this.Trans;

#region Quick Search

			_WebLookup.UGET_CODE   = "QDD02803A";
			_WebLookup.Trans       = this.Trans;
			_WebLookup.DbName      = this.DbName;
			_WebLookup.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebLookup.ZZLOGON_SSD = this.ZZLOGON_SSD;

				oWindow.AddLookUp(_WebLookup);

			XOption objXOption     = new XOption();
			objXOption.UID_CODE    = this.UID_CODE;
			objXOption.Trans       = this.Trans;

			XDepend objXDepend     = new XDepend();
			objXDepend.UID_CODE    = this.UID_CODE;
			objXDepend.Trans       = this.Trans;
			objXDepend.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objXDepend.ZZLOGON_SSD = this.ZZLOGON_SSD;

			ZZCDF _ZZCDF      = new ZZCDF();
			_ZZCDF.UID_CODE   = this.UID_CODE;
			_ZZCDF.Trans      = this.Trans;

#endregion

			oXForm             = new XForm();
			oXForm.UID_CODE    = this.UID_CODE;
			oXForm.DbName      = this.DbName;
			oXForm.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			oXForm.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oXForm.MODEL_DATA = this.ZZMODEL_DATA;

			//oXForm.Trans     = this.Trans;

#region XForm element

#region SORHDTM_SO_NO
				objSORHDTM_SO_NO.Name              = "Txt_SORHDTM_SO_NO";
				objSORHDTM_SO_NO.TABLE_COLUMN_NAME = "SORHDTM_SO_NO";

				objSORHDTM_SO_NO.OnBlurEvents = "";
				objSORHDTM_SO_NO.Length       = 12;
				objSORHDTM_SO_NO.Height       = 0;
				objSORHDTM_SO_NO.COLUMN_SCALE = 0;
				objSORHDTM_SO_NO.STATUS_CODE  = "";
				objSORHDTM_SO_NO.Compulsory   = false;
				objSORHDTM_SO_NO.Caption      = _Captions.Caption(this.UID_CODE,"lbl_SO_NO");
				objSORHDTM_SO_NO.COLSPAN      = 1;
				objSORHDTM_SO_NO.ROWSPAN      = 1;
				objSORHDTM_SO_NO.Index        = 1010;
				objSORHDTM_SO_NO.NEW_LINE     = true;
				objSORHDTM_SO_NO.NEW_CELL     = true;
				objSORHDTM_SO_NO.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_SO_NO);
				oWindow.Components.Add(objSORHDTM_SO_NO);

#endregion //SORHDTM_SO_NO

#region SORHDTM_ODTP_XREV
				objSORHDTM_ODTP_XREV.Name              = "Txt_SORHDTM_ODTP_XREV";
				objSORHDTM_ODTP_XREV.TABLE_COLUMN_NAME = "SORHDTM_ODTP_XREV";

				objSORHDTM_ODTP_XREV.OnBlurEvents = "";
				objSORHDTM_ODTP_XREV.Length       = 10;
				objSORHDTM_ODTP_XREV.Height       = 0;
				objSORHDTM_ODTP_XREV.COLUMN_SCALE = 0;
				objSORHDTM_ODTP_XREV.STATUS_CODE  = "";
				objSORHDTM_ODTP_XREV.Compulsory   = false;
				objSORHDTM_ODTP_XREV.Caption      = _Captions.Caption(this.UID_CODE,"lbl_ODTP_XREV");
				objSORHDTM_ODTP_XREV.COLSPAN      = 1;
				objSORHDTM_ODTP_XREV.ROWSPAN      = 1;
				objSORHDTM_ODTP_XREV.Index        = 1020;
				objSORHDTM_ODTP_XREV.NEW_LINE     = false;
				objSORHDTM_ODTP_XREV.NEW_CELL     = true;
				objSORHDTM_ODTP_XREV.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_ODTP_XREV);
				oWindow.Components.Add(objSORHDTM_ODTP_XREV);

#endregion //SORHDTM_ODTP_XREV

#region SORHDTM_ODTP_STATUS
				objSORHDTM_ODTP_STATUS.Name              = "Txt_SORHDTM_ODTP_STATUS";
				objSORHDTM_ODTP_STATUS.TABLE_COLUMN_NAME = "SORHDTM_ODTP_STATUS";

				objSORHDTM_ODTP_STATUS.OnBlurEvents = "";
				objSORHDTM_ODTP_STATUS.Length       = 8;
				objSORHDTM_ODTP_STATUS.Height       = 0;
				objSORHDTM_ODTP_STATUS.COLUMN_SCALE = 0;
				objSORHDTM_ODTP_STATUS.STATUS_CODE  = "";
				objSORHDTM_ODTP_STATUS.Compulsory   = false;
				objSORHDTM_ODTP_STATUS.Caption      = _Captions.Caption(this.UID_CODE,"lbl_ODTP_STATUS");
				objSORHDTM_ODTP_STATUS.COLSPAN      = 1;
				objSORHDTM_ODTP_STATUS.ROWSPAN      = 1;
				objSORHDTM_ODTP_STATUS.Index        = 1030;
				objSORHDTM_ODTP_STATUS.NEW_LINE     = false;
				objSORHDTM_ODTP_STATUS.NEW_CELL     = true;
				objSORHDTM_ODTP_STATUS.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_ODTP_STATUS);
				oWindow.Components.Add(objSORHDTM_ODTP_STATUS);

#endregion //SORHDTM_ODTP_STATUS

#region SORHDTM_ODTP_CODE
				objSORHDTM_ODTP_CODE.Name              = "Txt_SORHDTM_ODTP_CODE";
				objSORHDTM_ODTP_CODE.TABLE_COLUMN_NAME = "SORHDTM_ODTP_CODE";

				objSORHDTM_ODTP_CODE.OnBlurEvents = "";
				objSORHDTM_ODTP_CODE.Length       = 8;
				objSORHDTM_ODTP_CODE.Height       = 0;
				objSORHDTM_ODTP_CODE.COLUMN_SCALE = 0;
				objSORHDTM_ODTP_CODE.STATUS_CODE  = "ADDNEW";
				objSORHDTM_ODTP_CODE.Compulsory   = true;
				objSORHDTM_ODTP_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_ODTP_CODE");
				objSORHDTM_ODTP_CODE.COLSPAN      = 1;
				objSORHDTM_ODTP_CODE.ROWSPAN      = 1;
				objSORHDTM_ODTP_CODE.Index        = 1040;
				objSORHDTM_ODTP_CODE.NEW_LINE     = true;
				objSORHDTM_ODTP_CODE.NEW_CELL     = true;
				objSORHDTM_ODTP_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_ODTP_CODE);
				oWindow.Components.Add(objSORHDTM_ODTP_CODE);

					objSORHDTM_ODTP_CODE.Browser        = objSORHDTM_ODTP_CODEBrw;
					objSORHDTM_ODTP_CODEBrw.UGET_CODE   = "BXD20056A";
					objSORHDTM_ODTP_CODEBrw.Data_Viewer = "";
					objSORHDTM_ODTP_CODEBrw.ACTIVE_FIELD ="ZUODTPTM.ODTP_CODE";

					objSORHDTM_ODTP_CODE.OnBlurEvents="RefreshData('BXD20056A','XREF','Txt_SORHDTM_ODTP_CODE');";

					objSORHDTM_ODTP_CODE.UGET_CODE="BXD20056A";

#endregion //SORHDTM_ODTP_CODE

#region SORHDTM_COMP_CODE
				objSORHDTM_COMP_CODE.Name              = "Txt_SORHDTM_COMP_CODE";
				objSORHDTM_COMP_CODE.TABLE_COLUMN_NAME = "SORHDTM_COMP_CODE";

				objSORHDTM_COMP_CODE.OnBlurEvents = "";
				objSORHDTM_COMP_CODE.Length       = 8;
				objSORHDTM_COMP_CODE.Height       = 0;
				objSORHDTM_COMP_CODE.COLUMN_SCALE = 0;
				objSORHDTM_COMP_CODE.STATUS_CODE  = "ADDNEW";
				objSORHDTM_COMP_CODE.Compulsory   = true;
				objSORHDTM_COMP_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_COMP_CODE");
				objSORHDTM_COMP_CODE.COLSPAN      = 1;
				objSORHDTM_COMP_CODE.ROWSPAN      = 1;
				objSORHDTM_COMP_CODE.Index        = 1050;
				objSORHDTM_COMP_CODE.NEW_LINE     = false;
				objSORHDTM_COMP_CODE.NEW_CELL     = true;
				objSORHDTM_COMP_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_COMP_CODE);
				oWindow.Components.Add(objSORHDTM_COMP_CODE);

					objSORHDTM_COMP_CODE.Browser        = objSORHDTM_COMP_CODEBrw;
					objSORHDTM_COMP_CODEBrw.UGET_CODE   = "COMP_CODE";
					objSORHDTM_COMP_CODEBrw.Data_Viewer = "";
					objSORHDTM_COMP_CODEBrw.ACTIVE_FIELD ="ZNCOMPTM.COMP_CODE";

					objSORHDTM_COMP_CODE.OnBlurEvents="RefreshData('COMP_CODE','XREF','Txt_SORHDTM_COMP_CODE');";

					objSORHDTM_COMP_CODE.UGET_CODE="COMP_CODE";

#endregion //SORHDTM_COMP_CODE

#region SORHDTM_SALES_CODE
				objSORHDTM_SALES_CODE.Name              = "Txt_SORHDTM_SALES_CODE";
				objSORHDTM_SALES_CODE.TABLE_COLUMN_NAME = "SORHDTM_SALES_CODE";

				objSORHDTM_SALES_CODE.OnBlurEvents = "";
				objSORHDTM_SALES_CODE.Length       = 8;
				objSORHDTM_SALES_CODE.Height       = 0;
				objSORHDTM_SALES_CODE.COLUMN_SCALE = 0;
				objSORHDTM_SALES_CODE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_SALES_CODE.Compulsory   = true;
				objSORHDTM_SALES_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_SALES_CODE");
				objSORHDTM_SALES_CODE.COLSPAN      = 1;
				objSORHDTM_SALES_CODE.ROWSPAN      = 1;
				objSORHDTM_SALES_CODE.Index        = 1060;
				objSORHDTM_SALES_CODE.NEW_LINE     = false;
				objSORHDTM_SALES_CODE.NEW_CELL     = true;
				objSORHDTM_SALES_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_SALES_CODE);
				oWindow.Components.Add(objSORHDTM_SALES_CODE);

					objSORHDTM_SALES_CODE.Browser        = objSORHDTM_SALES_CODEBrw;
					objSORHDTM_SALES_CODEBrw.UGET_CODE   = "SALES_CODE";
					objSORHDTM_SALES_CODEBrw.Data_Viewer = "";
					objSORHDTM_SALES_CODEBrw.ACTIVE_FIELD ="SALESTM.SALES_CODE";

					objSORHDTM_SALES_CODE.OnBlurEvents="RefreshData('SALES_CODE','XREF','Txt_SORHDTM_SALES_CODE');";

					objSORHDTM_SALES_CODE.UGET_CODE="SALES_CODE";

#endregion //SORHDTM_SALES_CODE

#region SORHDTM_BPN_CODE
				objSORHDTM_BPN_CODE.Name              = "Txt_SORHDTM_BPN_CODE";
				objSORHDTM_BPN_CODE.TABLE_COLUMN_NAME = "SORHDTM_BPN_CODE";

				objSORHDTM_BPN_CODE.OnBlurEvents = "";
				objSORHDTM_BPN_CODE.Length       = 8;
				objSORHDTM_BPN_CODE.Height       = 0;
				objSORHDTM_BPN_CODE.COLUMN_SCALE = 0;
				objSORHDTM_BPN_CODE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_BPN_CODE.Compulsory   = true;
				objSORHDTM_BPN_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_BPN_CODE");
				objSORHDTM_BPN_CODE.COLSPAN      = 1;
				objSORHDTM_BPN_CODE.ROWSPAN      = 1;
				objSORHDTM_BPN_CODE.Index        = 1070;
				objSORHDTM_BPN_CODE.NEW_LINE     = true;
				objSORHDTM_BPN_CODE.NEW_CELL     = true;
				objSORHDTM_BPN_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_BPN_CODE);
				oWindow.Components.Add(objSORHDTM_BPN_CODE);

					objSORHDTM_BPN_CODE.Browser        = objSORHDTM_BPN_CODEBrw;
					objSORHDTM_BPN_CODEBrw.UGET_CODE   = "BXD20120A";
					objSORHDTM_BPN_CODEBrw.Data_Viewer = "";
					objSORHDTM_BPN_CODEBrw.ACTIVE_FIELD ="BPNRTBM.BPN_CODE";

						objSORHDTM_BPN_CODE.OnBlurEvents="RefreshData('BXD20120A','XREF','Txt_SORHDTM_BPN_CODE');";
					objSORHDTM_BPN_CODE.OnBlurEvents="RefreshData('BXD20120A','VIEW','Txt_SORHDTM_BPN_CODE');";

					objSORHDTM_BPN_CODE.UGET_CODE="BXD20120A";

#endregion //SORHDTM_BPN_CODE

#region VARIABLE_BPN_NAME01
				objVARIABLE_BPN_NAME01.Name              = "Txt_VARIABLE_BPN_NAME01";
				objVARIABLE_BPN_NAME01.TABLE_COLUMN_NAME = "VARIABLE_BPN_NAME01";

				objVARIABLE_BPN_NAME01.OnBlurEvents = "";
				objVARIABLE_BPN_NAME01.Length       = 40;
				objVARIABLE_BPN_NAME01.Height       = 0;
				objVARIABLE_BPN_NAME01.COLUMN_SCALE = 0;
				objVARIABLE_BPN_NAME01.STATUS_CODE  = "";
				objVARIABLE_BPN_NAME01.Compulsory   = false;
				objVARIABLE_BPN_NAME01.Caption      = _Captions.Caption(this.UID_CODE,"lbl_BPN_NAME01");
				objVARIABLE_BPN_NAME01.COLSPAN      = 4;
				objVARIABLE_BPN_NAME01.ROWSPAN      = 1;
				objVARIABLE_BPN_NAME01.Index        = 1080;
				objVARIABLE_BPN_NAME01.NEW_LINE     = false;
				objVARIABLE_BPN_NAME01.NEW_CELL     = true;
				objVARIABLE_BPN_NAME01.LINE_REVEAL  = false;

				oXForm.AddObject(objVARIABLE_BPN_NAME01);
				oWindow.Components.Add(objVARIABLE_BPN_NAME01);

#endregion //VARIABLE_BPN_NAME01

#region SORHDTM_CUS_TERM
				objSORHDTM_CUS_TERM.Name              = "Txt_SORHDTM_CUS_TERM";
				objSORHDTM_CUS_TERM.TABLE_COLUMN_NAME = "SORHDTM_CUS_TERM";

				objSORHDTM_CUS_TERM.OnBlurEvents = "";
				objSORHDTM_CUS_TERM.Length       = 8;
				objSORHDTM_CUS_TERM.Height       = 0;
				objSORHDTM_CUS_TERM.COLUMN_SCALE = 0;
				objSORHDTM_CUS_TERM.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_CUS_TERM.Compulsory   = true;
				objSORHDTM_CUS_TERM.Caption      = _Captions.Caption(this.UID_CODE,"lbl_CUS_TERM");
				objSORHDTM_CUS_TERM.COLSPAN      = 1;
				objSORHDTM_CUS_TERM.ROWSPAN      = 1;
				objSORHDTM_CUS_TERM.Index        = 1090;
				objSORHDTM_CUS_TERM.NEW_LINE     = true;
				objSORHDTM_CUS_TERM.NEW_CELL     = true;
				objSORHDTM_CUS_TERM.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_CUS_TERM);
				oWindow.Components.Add(objSORHDTM_CUS_TERM);

					objSORHDTM_CUS_TERM.Browser        = objSORHDTM_CUS_TERMBrw;
					objSORHDTM_CUS_TERMBrw.UGET_CODE   = "PAY_CODE";
					objSORHDTM_CUS_TERMBrw.Data_Viewer = "";
					objSORHDTM_CUS_TERMBrw.ACTIVE_FIELD ="PMTCDTM.PMT_CODE";

					objSORHDTM_CUS_TERM.OnBlurEvents="RefreshData('PAY_CODE','XREF','Txt_SORHDTM_CUS_TERM');";

					objSORHDTM_CUS_TERM.UGET_CODE="PAY_CODE";

#endregion //SORHDTM_CUS_TERM

#region SORHDTM_SO_REQ_DATE
				objSORHDTM_SO_REQ_DATE.Name              = "Txt_SORHDTM_SO_REQ_DATE";
				objSORHDTM_SO_REQ_DATE.TABLE_COLUMN_NAME = "SORHDTM_SO_REQ_DATE";

				objSORHDTM_SO_REQ_DATE.OnBlurEvents = "";
				objSORHDTM_SO_REQ_DATE.Length       = 0;
				objSORHDTM_SO_REQ_DATE.Height       = 0;
				objSORHDTM_SO_REQ_DATE.COLUMN_SCALE = 0;
				objSORHDTM_SO_REQ_DATE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_SO_REQ_DATE.Compulsory   = true;
				objSORHDTM_SO_REQ_DATE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_SO_REQ_DATE");
				objSORHDTM_SO_REQ_DATE.COLSPAN      = 1;
				objSORHDTM_SO_REQ_DATE.ROWSPAN      = 1;
				objSORHDTM_SO_REQ_DATE.Index        = 1100;
				objSORHDTM_SO_REQ_DATE.NEW_LINE     = false;
				objSORHDTM_SO_REQ_DATE.NEW_CELL     = true;
				objSORHDTM_SO_REQ_DATE.LINE_REVEAL  = false;

					objSORHDTM_SO_REQ_DATE.Title=_Captions.Caption("lbl_Date_Column_Title");

				oXForm.AddObject(objSORHDTM_SO_REQ_DATE);
				oWindow.Components.Add(objSORHDTM_SO_REQ_DATE);

#endregion //SORHDTM_SO_REQ_DATE

#region SORHDTM_CCY_CODE
				objSORHDTM_CCY_CODE.Name              = "Txt_SORHDTM_CCY_CODE";
				objSORHDTM_CCY_CODE.TABLE_COLUMN_NAME = "SORHDTM_CCY_CODE";

				objSORHDTM_CCY_CODE.OnBlurEvents = "";
				objSORHDTM_CCY_CODE.Length       = 3;
				objSORHDTM_CCY_CODE.Height       = 0;
				objSORHDTM_CCY_CODE.COLUMN_SCALE = 0;
				objSORHDTM_CCY_CODE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_CCY_CODE.Compulsory   = true;
				objSORHDTM_CCY_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_CCY_CODE");
				objSORHDTM_CCY_CODE.COLSPAN      = 1;
				objSORHDTM_CCY_CODE.ROWSPAN      = 1;
				objSORHDTM_CCY_CODE.Index        = 1110;
				objSORHDTM_CCY_CODE.NEW_LINE     = false;
				objSORHDTM_CCY_CODE.NEW_CELL     = true;
				objSORHDTM_CCY_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_CCY_CODE);
				oWindow.Components.Add(objSORHDTM_CCY_CODE);

					objSORHDTM_CCY_CODE.Browser        = objSORHDTM_CCY_CODEBrw;
					objSORHDTM_CCY_CODEBrw.UGET_CODE   = "BXD20117A";
					objSORHDTM_CCY_CODEBrw.Data_Viewer = "";
					objSORHDTM_CCY_CODEBrw.ACTIVE_FIELD ="CCYRTBM.CCY_CODE";

					objSORHDTM_CCY_CODE.OnBlurEvents="RefreshData('BXD20117A','XREF','Txt_SORHDTM_CCY_CODE');";

					objSORHDTM_CCY_CODE.UGET_CODE="BXD20117A";

#endregion //SORHDTM_CCY_CODE

#region SORHDTM_PTERM_CODE
				objSORHDTM_PTERM_CODE.Name              = "Txt_SORHDTM_PTERM_CODE";
				objSORHDTM_PTERM_CODE.TABLE_COLUMN_NAME = "SORHDTM_PTERM_CODE";

				objSORHDTM_PTERM_CODE.OnBlurEvents = "";
				objSORHDTM_PTERM_CODE.Length       = 8;
				objSORHDTM_PTERM_CODE.Height       = 0;
				objSORHDTM_PTERM_CODE.COLUMN_SCALE = 0;
				objSORHDTM_PTERM_CODE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_PTERM_CODE.Compulsory   = true;
				objSORHDTM_PTERM_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_PTERM_CODE");
				objSORHDTM_PTERM_CODE.COLSPAN      = 1;
				objSORHDTM_PTERM_CODE.ROWSPAN      = 1;
				objSORHDTM_PTERM_CODE.Index        = 1120;
				objSORHDTM_PTERM_CODE.NEW_LINE     = true;
				objSORHDTM_PTERM_CODE.NEW_CELL     = true;
				objSORHDTM_PTERM_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_PTERM_CODE);
				oWindow.Components.Add(objSORHDTM_PTERM_CODE);

					objSORHDTM_PTERM_CODE.Browser        = objSORHDTM_PTERM_CODEBrw;
					objSORHDTM_PTERM_CODEBrw.UGET_CODE   = "PTERM_CODE";
					objSORHDTM_PTERM_CODEBrw.Data_Viewer = "";
					objSORHDTM_PTERM_CODEBrw.ACTIVE_FIELD ="PTERMTM.PTERM_CODE";

					objSORHDTM_PTERM_CODE.OnBlurEvents="RefreshData('PTERM_CODE','XREF','Txt_SORHDTM_PTERM_CODE');";

					objSORHDTM_PTERM_CODE.UGET_CODE="PTERM_CODE";

#endregion //SORHDTM_PTERM_CODE

#region SORHDTM_CUS_ORD
				objSORHDTM_CUS_ORD.Name              = "Txt_SORHDTM_CUS_ORD";
				objSORHDTM_CUS_ORD.TABLE_COLUMN_NAME = "SORHDTM_CUS_ORD";

				objSORHDTM_CUS_ORD.OnBlurEvents = "";
				objSORHDTM_CUS_ORD.Length       = 12;
				objSORHDTM_CUS_ORD.Height       = 0;
				objSORHDTM_CUS_ORD.COLUMN_SCALE = 0;
				objSORHDTM_CUS_ORD.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_CUS_ORD.Compulsory   = false;
				objSORHDTM_CUS_ORD.Caption      = _Captions.Caption(this.UID_CODE,"lbl_CUS_ORD");
				objSORHDTM_CUS_ORD.COLSPAN      = 1;
				objSORHDTM_CUS_ORD.ROWSPAN      = 1;
				objSORHDTM_CUS_ORD.Index        = 1130;
				objSORHDTM_CUS_ORD.NEW_LINE     = false;
				objSORHDTM_CUS_ORD.NEW_CELL     = true;
				objSORHDTM_CUS_ORD.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_CUS_ORD);
				oWindow.Components.Add(objSORHDTM_CUS_ORD);

#endregion //SORHDTM_CUS_ORD

#region SORHDTM_XCHG_RATE
				objSORHDTM_XCHG_RATE.Name              = "Txt_SORHDTM_XCHG_RATE";
				objSORHDTM_XCHG_RATE.TABLE_COLUMN_NAME = "SORHDTM_XCHG_RATE";

				objSORHDTM_XCHG_RATE.OnBlurEvents = "";
				objSORHDTM_XCHG_RATE.Length       = 18;
				objSORHDTM_XCHG_RATE.Height       = 0;
				objSORHDTM_XCHG_RATE.COLUMN_SCALE = 7;
				objSORHDTM_XCHG_RATE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_XCHG_RATE.Compulsory   = true;
				objSORHDTM_XCHG_RATE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_XCHG_RATE");
				objSORHDTM_XCHG_RATE.COLSPAN      = 1;
				objSORHDTM_XCHG_RATE.ROWSPAN      = 1;
				objSORHDTM_XCHG_RATE.Index        = 1140;
				objSORHDTM_XCHG_RATE.NEW_LINE     = false;
				objSORHDTM_XCHG_RATE.NEW_CELL     = true;
				objSORHDTM_XCHG_RATE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_XCHG_RATE);
				oWindow.Components.Add(objSORHDTM_XCHG_RATE);

#endregion //SORHDTM_XCHG_RATE

#region SORHDTM_DELY_CODE
				objSORHDTM_DELY_CODE.Name              = "Txt_SORHDTM_DELY_CODE";
				objSORHDTM_DELY_CODE.TABLE_COLUMN_NAME = "SORHDTM_DELY_CODE";

				objSORHDTM_DELY_CODE.OnBlurEvents = "";
				objSORHDTM_DELY_CODE.Length       = 8;
				objSORHDTM_DELY_CODE.Height       = 0;
				objSORHDTM_DELY_CODE.COLUMN_SCALE = 0;
				objSORHDTM_DELY_CODE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_DELY_CODE.Compulsory   = true;
				objSORHDTM_DELY_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_DELY_CODE");
				objSORHDTM_DELY_CODE.COLSPAN      = 1;
				objSORHDTM_DELY_CODE.ROWSPAN      = 1;
				objSORHDTM_DELY_CODE.Index        = 1150;
				objSORHDTM_DELY_CODE.NEW_LINE     = true;
				objSORHDTM_DELY_CODE.NEW_CELL     = true;
				objSORHDTM_DELY_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_DELY_CODE);
				oWindow.Components.Add(objSORHDTM_DELY_CODE);

					objSORHDTM_DELY_CODE.Browser        = objSORHDTM_DELY_CODEBrw;
					objSORHDTM_DELY_CODEBrw.UGET_CODE   = "DELY_CODE";
					objSORHDTM_DELY_CODEBrw.Data_Viewer = "";
					objSORHDTM_DELY_CODEBrw.ACTIVE_FIELD ="DELYTBM.DELY_CODE";

					objSORHDTM_DELY_CODE.OnBlurEvents="RefreshData('DELY_CODE','XREF','Txt_SORHDTM_DELY_CODE');";

					objSORHDTM_DELY_CODE.UGET_CODE="DELY_CODE";

#endregion //SORHDTM_DELY_CODE

#region SORHDTM_REGN_CODE
				objSORHDTM_REGN_CODE.Name              = "Txt_SORHDTM_REGN_CODE";
				objSORHDTM_REGN_CODE.TABLE_COLUMN_NAME = "SORHDTM_REGN_CODE";

				objSORHDTM_REGN_CODE.OnBlurEvents = "";
				objSORHDTM_REGN_CODE.Length       = 8;
				objSORHDTM_REGN_CODE.Height       = 0;
				objSORHDTM_REGN_CODE.COLUMN_SCALE = 0;
				objSORHDTM_REGN_CODE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_REGN_CODE.Compulsory   = true;
				objSORHDTM_REGN_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_REGN_CODE");
				objSORHDTM_REGN_CODE.COLSPAN      = 1;
				objSORHDTM_REGN_CODE.ROWSPAN      = 1;
				objSORHDTM_REGN_CODE.Index        = 1160;
				objSORHDTM_REGN_CODE.NEW_LINE     = false;
				objSORHDTM_REGN_CODE.NEW_CELL     = true;
				objSORHDTM_REGN_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_REGN_CODE);
				oWindow.Components.Add(objSORHDTM_REGN_CODE);

					objSORHDTM_REGN_CODE.Browser        = objSORHDTM_REGN_CODEBrw;
					objSORHDTM_REGN_CODEBrw.UGET_CODE   = "REGN_CODE";
					objSORHDTM_REGN_CODEBrw.Data_Viewer = "";
					objSORHDTM_REGN_CODEBrw.ACTIVE_FIELD ="REGNCDM.REGN_CODE";

					objSORHDTM_REGN_CODE.OnBlurEvents="RefreshData('REGN_CODE','XREF','Txt_SORHDTM_REGN_CODE');";

					objSORHDTM_REGN_CODE.UGET_CODE="REGN_CODE";

#endregion //SORHDTM_REGN_CODE

#region SORHDTM_SVIA_CODE
				objSORHDTM_SVIA_CODE.Name              = "Txt_SORHDTM_SVIA_CODE";
				objSORHDTM_SVIA_CODE.TABLE_COLUMN_NAME = "SORHDTM_SVIA_CODE";

				objSORHDTM_SVIA_CODE.OnBlurEvents = "";
				objSORHDTM_SVIA_CODE.Length       = 8;
				objSORHDTM_SVIA_CODE.Height       = 0;
				objSORHDTM_SVIA_CODE.COLUMN_SCALE = 0;
				objSORHDTM_SVIA_CODE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_SVIA_CODE.Compulsory   = true;
				objSORHDTM_SVIA_CODE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_SVIA_CODE");
				objSORHDTM_SVIA_CODE.COLSPAN      = 1;
				objSORHDTM_SVIA_CODE.ROWSPAN      = 1;
				objSORHDTM_SVIA_CODE.Index        = 1170;
				objSORHDTM_SVIA_CODE.NEW_LINE     = false;
				objSORHDTM_SVIA_CODE.NEW_CELL     = true;
				objSORHDTM_SVIA_CODE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_SVIA_CODE);
				oWindow.Components.Add(objSORHDTM_SVIA_CODE);

					objSORHDTM_SVIA_CODE.Browser        = objSORHDTM_SVIA_CODEBrw;
					objSORHDTM_SVIA_CODEBrw.UGET_CODE   = "SVIA_CODE";
					objSORHDTM_SVIA_CODEBrw.Data_Viewer = "";
					objSORHDTM_SVIA_CODEBrw.ACTIVE_FIELD ="SVIATBM.SVIA_CODE";

					objSORHDTM_SVIA_CODE.OnBlurEvents="RefreshData('SVIA_CODE','XREF','Txt_SORHDTM_SVIA_CODE');";

					objSORHDTM_SVIA_CODE.UGET_CODE="SVIA_CODE";

#endregion //SORHDTM_SVIA_CODE

#region SORHDTM_CUS_REFX
				objSORHDTM_CUS_REFX.Name              = "Txt_SORHDTM_CUS_REFX";
				objSORHDTM_CUS_REFX.TABLE_COLUMN_NAME = "SORHDTM_CUS_REFX";

				objSORHDTM_CUS_REFX.OnBlurEvents = "";
				objSORHDTM_CUS_REFX.Length       = 12;
				objSORHDTM_CUS_REFX.Height       = 0;
				objSORHDTM_CUS_REFX.COLUMN_SCALE = 0;
				objSORHDTM_CUS_REFX.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_CUS_REFX.Compulsory   = false;
				objSORHDTM_CUS_REFX.Caption      = _Captions.Caption(this.UID_CODE,"lbl_CUS_REFX");
				objSORHDTM_CUS_REFX.COLSPAN      = 1;
				objSORHDTM_CUS_REFX.ROWSPAN      = 1;
				objSORHDTM_CUS_REFX.Index        = 1180;
				objSORHDTM_CUS_REFX.NEW_LINE     = true;
				objSORHDTM_CUS_REFX.NEW_CELL     = true;
				objSORHDTM_CUS_REFX.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_CUS_REFX);
				oWindow.Components.Add(objSORHDTM_CUS_REFX);

#endregion //SORHDTM_CUS_REFX

#region SORHDTM_ORG_CTRY
				objSORHDTM_ORG_CTRY.Name              = "Txt_SORHDTM_ORG_CTRY";
				objSORHDTM_ORG_CTRY.TABLE_COLUMN_NAME = "SORHDTM_ORG_CTRY";

				objSORHDTM_ORG_CTRY.OnBlurEvents = "";
				objSORHDTM_ORG_CTRY.Length       = 12;
				objSORHDTM_ORG_CTRY.Height       = 0;
				objSORHDTM_ORG_CTRY.COLUMN_SCALE = 0;
				objSORHDTM_ORG_CTRY.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_ORG_CTRY.Compulsory   = false;
				objSORHDTM_ORG_CTRY.Caption      = _Captions.Caption(this.UID_CODE,"lbl_ORG_CTRY");
				objSORHDTM_ORG_CTRY.COLSPAN      = 1;
				objSORHDTM_ORG_CTRY.ROWSPAN      = 1;
				objSORHDTM_ORG_CTRY.Index        = 1190;
				objSORHDTM_ORG_CTRY.NEW_LINE     = false;
				objSORHDTM_ORG_CTRY.NEW_CELL     = true;
				objSORHDTM_ORG_CTRY.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_ORG_CTRY);
				oWindow.Components.Add(objSORHDTM_ORG_CTRY);

#endregion //SORHDTM_ORG_CTRY

#region SORHDTM_ORG_CERT
				objSORHDTM_ORG_CERT.Name              = "Txt_SORHDTM_ORG_CERT";
				objSORHDTM_ORG_CERT.TABLE_COLUMN_NAME = "SORHDTM_ORG_CERT";

				objSORHDTM_ORG_CERT.OnBlurEvents = "";
				objSORHDTM_ORG_CERT.Length       = 20;
				objSORHDTM_ORG_CERT.Height       = 0;
				objSORHDTM_ORG_CERT.COLUMN_SCALE = 0;
				objSORHDTM_ORG_CERT.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_ORG_CERT.Compulsory   = false;
				objSORHDTM_ORG_CERT.Caption      = _Captions.Caption(this.UID_CODE,"lbl_ORG_CERT");
				objSORHDTM_ORG_CERT.COLSPAN      = 1;
				objSORHDTM_ORG_CERT.ROWSPAN      = 1;
				objSORHDTM_ORG_CERT.Index        = 1200;
				objSORHDTM_ORG_CERT.NEW_LINE     = false;
				objSORHDTM_ORG_CERT.NEW_CELL     = true;
				objSORHDTM_ORG_CERT.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_ORG_CERT);
				oWindow.Components.Add(objSORHDTM_ORG_CERT);

#endregion //SORHDTM_ORG_CERT

#region SORHDTM_DISCOUNT_RATE
				objSORHDTM_DISCOUNT_RATE.Name              = "Txt_SORHDTM_DISCOUNT_RATE";
				objSORHDTM_DISCOUNT_RATE.TABLE_COLUMN_NAME = "SORHDTM_DISCOUNT_RATE";

				objSORHDTM_DISCOUNT_RATE.OnBlurEvents = "";
				objSORHDTM_DISCOUNT_RATE.Length       = 20;
				objSORHDTM_DISCOUNT_RATE.Height       = 0;
				objSORHDTM_DISCOUNT_RATE.COLUMN_SCALE = 2;
				objSORHDTM_DISCOUNT_RATE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_DISCOUNT_RATE.Compulsory   = false;
				objSORHDTM_DISCOUNT_RATE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_DISCOUNT_RATE");
				objSORHDTM_DISCOUNT_RATE.COLSPAN      = 1;
				objSORHDTM_DISCOUNT_RATE.ROWSPAN      = 1;
				objSORHDTM_DISCOUNT_RATE.Index        = 1210;
				objSORHDTM_DISCOUNT_RATE.NEW_LINE     = true;
				objSORHDTM_DISCOUNT_RATE.NEW_CELL     = true;
				objSORHDTM_DISCOUNT_RATE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_DISCOUNT_RATE);
				oWindow.Components.Add(objSORHDTM_DISCOUNT_RATE);

#endregion //SORHDTM_DISCOUNT_RATE

#region SORHDTM_TAX_RATE
				objSORHDTM_TAX_RATE.Name              = "Txt_SORHDTM_TAX_RATE";
				objSORHDTM_TAX_RATE.TABLE_COLUMN_NAME = "SORHDTM_TAX_RATE";

				objSORHDTM_TAX_RATE.OnBlurEvents = "";
				objSORHDTM_TAX_RATE.Length       = 20;
				objSORHDTM_TAX_RATE.Height       = 0;
				objSORHDTM_TAX_RATE.COLUMN_SCALE = 2;
				objSORHDTM_TAX_RATE.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_TAX_RATE.Compulsory   = false;
				objSORHDTM_TAX_RATE.Caption      = _Captions.Caption(this.UID_CODE,"lbl_TAX_RATE");
				objSORHDTM_TAX_RATE.COLSPAN      = 1;
				objSORHDTM_TAX_RATE.ROWSPAN      = 1;
				objSORHDTM_TAX_RATE.Index        = 1220;
				objSORHDTM_TAX_RATE.NEW_LINE     = false;
				objSORHDTM_TAX_RATE.NEW_CELL     = true;
				objSORHDTM_TAX_RATE.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_TAX_RATE);
				oWindow.Components.Add(objSORHDTM_TAX_RATE);

#endregion //SORHDTM_TAX_RATE

#region SORHDTM_SO_ODTP_RMKS
				objSORHDTM_SO_ODTP_RMKS.Name              = "Txt_SORHDTM_SO_ODTP_RMKS";
				objSORHDTM_SO_ODTP_RMKS.TABLE_COLUMN_NAME = "SORHDTM_SO_ODTP_RMKS";

				objSORHDTM_SO_ODTP_RMKS.OnBlurEvents = "";
				objSORHDTM_SO_ODTP_RMKS.Length       = 80;
				objSORHDTM_SO_ODTP_RMKS.Height       = 0;
				objSORHDTM_SO_ODTP_RMKS.COLUMN_SCALE = 0;
				objSORHDTM_SO_ODTP_RMKS.STATUS_CODE  = "ADDNEW,UPDATE";
				objSORHDTM_SO_ODTP_RMKS.Compulsory   = false;
				objSORHDTM_SO_ODTP_RMKS.Caption      = _Captions.Caption(this.UID_CODE,"lbl_SO_ODTP_RMKS");
				objSORHDTM_SO_ODTP_RMKS.COLSPAN      = 4;
				objSORHDTM_SO_ODTP_RMKS.ROWSPAN      = 1;
				objSORHDTM_SO_ODTP_RMKS.Index        = 1230;
				objSORHDTM_SO_ODTP_RMKS.NEW_LINE     = true;
				objSORHDTM_SO_ODTP_RMKS.NEW_CELL     = true;
				objSORHDTM_SO_ODTP_RMKS.LINE_REVEAL  = false;

				oXForm.AddObject(objSORHDTM_SO_ODTP_RMKS);
				oWindow.Components.Add(objSORHDTM_SO_ODTP_RMKS);

#endregion //SORHDTM_SO_ODTP_RMKS

			_ZZCDF.Process();

			foreach (VContexts oVContexts in _ZZCDF.ZZCDFS) 
			{
				AComponent oCDFElement;

				if (oVContexts.getValue("CDF_TP_CODE")=="D")
				{
					oCDFElement=new WebDateBox();
				}else if (oVContexts.getValue("CDF_CODE")=="L")
				{
					oCDFElement=new WebCheckBox();
				}else if (oVContexts.getValue("CDF_CODE")=="N")
				{
					oCDFElement=new WebFloatBox();
				}else{
					oCDFElement=new WebTextBox();
				}

				oCDFElement.Name          = "Txt_CDF_"+oVContexts.getValue("CDF_CODE");
				oCDFElement.Length        = oVContexts.getInteger("CDF_LENGTH");
				oCDFElement.Height        = 1;
				oCDFElement.COLUMN_SCALE = oVContexts.getInteger("COLUMN_SCALE");
				oCDFElement.STATUS_CODE   = oVContexts.getValue("STATUS_CODE");
				oCDFElement.Compulsory    = !oVContexts.getBoolean("COLUMN_NULLABLE");

				if (oVContexts.getValue("LABEL_ID")!="")
				{
					oCDFElement.Caption     =_Captions.Caption(this.UID_CODE,oVContexts.getValue("LABEL_ID"));
				}else{
					oCDFElement.Caption     =oVContexts.getValue("CDF_NAME01");
				}
				oCDFElement.COLSPAN      = 1;
				oCDFElement.ROWSPAN      = 1;
				oCDFElement.Index        = oVContexts.getInteger("ORDINAL");
				oCDFElement.NEW_LINE     = true;
				oCDFElement.NEW_CELL     = true;
				oCDFElement.LINE_REVEAL  = false;

				_ZZCDFElect.Add(oCDFElement);
				oXForm.AddObject(oCDFElement);
				oWindow.Components.Add(oCDFElement);

			}

#endregion

				if (_DocsPermission.AccessRight(this.UID_CODE,this.ZZLOGON_ID,"SECURITY_CODE")==true)
				{
#region SECURITY_CODE

							objSORHDTM_USECURITY_CODE1.NEW_LINE    =true;
						objSORHDTM_USECURITY_CODE1.Name    = "Txt_SORHDTM_USECURITY_CODE1";
						objSORHDTM_USECURITY_CODE1.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE1");
						oXForm.AuthObject(objSORHDTM_USECURITY_CODE1);

											objSORHDTM_USECURITY_CODE2.Name    = "Txt_SORHDTM_USECURITY_CODE2";
						objSORHDTM_USECURITY_CODE2.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE2");
						oXForm.AuthObject(objSORHDTM_USECURITY_CODE2);

												objSORHDTM_USECURITY_CODE3.NEW_LINE    =true;
						objSORHDTM_USECURITY_CODE3.Name    = "Txt_SORHDTM_USECURITY_CODE3";
						objSORHDTM_USECURITY_CODE3.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE3");
						oXForm.AuthObject(objSORHDTM_USECURITY_CODE3);

											objSORHDTM_USECURITY_CODE4.Name    = "Txt_SORHDTM_USECURITY_CODE4";
						objSORHDTM_USECURITY_CODE4.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE4");
						oXForm.AuthObject(objSORHDTM_USECURITY_CODE4);

												objSORHDTM_USECURITY_CODE5.NEW_LINE    =true;
						objSORHDTM_USECURITY_CODE5.Name    = "Txt_SORHDTM_USECURITY_CODE5";
						objSORHDTM_USECURITY_CODE5.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE5");
						oXForm.AuthObject(objSORHDTM_USECURITY_CODE5);

											objSORHDTM_USECURITY_CODE6.Name    = "Txt_SORHDTM_USECURITY_CODE6";
						objSORHDTM_USECURITY_CODE6.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE6");
						oXForm.AuthObject(objSORHDTM_USECURITY_CODE6);

					#region USECURITY_RIGHT

					objSORHDTM_USECURITY_RIGHT.NEW_LINE = true;
					objSORHDTM_USECURITY_RIGHT.Name     = "Txt_SORHDTM_USECURITY_RIGHT";
					objSORHDTM_USECURITY_RIGHT.Caption  = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_RIGHT");
					oXForm.AuthObject(objSORHDTM_USECURITY_RIGHT);

#endregion

#region USTAGE_CODE

					objSORHDTM_USTAGE_CODE.NEW_LINE = false;
					objSORHDTM_USTAGE_CODE.Name     = "Txt_SORHDTM_USTAGE_CODE";
					objSORHDTM_USTAGE_CODE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_USTAGE_CODE");
					oXForm.AuthObject(objSORHDTM_USTAGE_CODE);

#endregion

#region ZADD_DATE

					objSORHDTM_UZADD_DATE.NEW_LINE = true;
					objSORHDTM_UZADD_DATE.Name     = "Txt_SORHDTM_UZADD_DATE";
					objSORHDTM_UZADD_DATE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_UZADD_DATE");
					oXForm.AuthObject(objSORHDTM_UZADD_DATE);

#endregion

#region ZADD_USER

					objSORHDTM_UZADD_USER.Name    = "Txt_SORHDTM_UZADD_USER";
					objSORHDTM_UZADD_USER.Caption = _Captions.Caption(this.UID_CODE,"lbl_UZADD_USER");
					oXForm.AuthObject(objSORHDTM_UZADD_USER);

#endregion

#region ZCHG_DATE
					objSORHDTM_UZCHG_DATE.NEW_LINE = true;
					objSORHDTM_UZCHG_DATE.Name     = "Txt_SORHDTM_UZCHG_DATE";
					objSORHDTM_UZCHG_DATE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_UZCHG_DATE");
					oXForm.AuthObject(objSORHDTM_UZCHG_DATE);

#endregion

#region ZCHG_USER
					objSORHDTM_UZCHG_USER.Name    = "Txt_SORHDTM_UZCHG_USER";
					objSORHDTM_UZCHG_USER.Caption = _Captions.Caption(this.UID_CODE,"lbl_UZCHG_USER");
					oXForm.AuthObject(objSORHDTM_UZCHG_USER);
#endregion
				}

#endregion

#region UXDIR_CODE
			objDATA_VFS_UXDIR_CODE.Name        = "Txt_DATA_VFS_UXDIR_CODE";
			objDATA_VFS_UXDIR_CODE.Caption     = _Captions.Caption(this.UID_CODE,"lbl_UXDIR_CODE");
			objDATA_VFS_UXDIR_CODE.NEW_CELL    = true;
			objDATA_VFS_UXDIR_CODE.NEW_LINE    = true;
			objDATA_VFS_UXDIR_CODE.Index       = 102002;
			objDATA_VFS_UXDIR_CODE.STATUS_CODE = "HIDDEN";

			oXForm.AddObject(objDATA_VFS_UXDIR_CODE);
			oWindow.Components.Add(objDATA_VFS_UXDIR_CODE);

#endregion

#region XUID_CODE
			objSORHDTM_XUID_CODE.NEW_LINE = true;
			objSORHDTM_XUID_CODE.Name     = "Txt_SORHDTM_XUID_CODE";
			objSORHDTM_XUID_CODE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_XUID_CODE");
			objSORHDTM_XUID_CODE.Text     = "UID02803A";
			oXForm.AuthObject(objSORHDTM_XUID_CODE);
#endregion

			_Captions.Caption(this.UID_CODE,"lbl_XUID_CODE");

			objXDepend.Process();

			oXForm.AddXDepend(objXDepend.Depends);

			oWindow.AddWebForm(oXForm);

			//if (this.ZZEventStatus=="ADDNEW")
			//{
			//}else if (this.ZZEventStatus=="UPDATE")
			//{
			//}

			//_WebCells.ZZMUKI_EDITION = MUKI_EDITION;
			_WebCells.Name= "QID02803A";
			_WebCells.UID_CODE    = this.UID_CODE;
			_WebCells.USQL_CODE   = "QID02803A";
			_WebCells.STATUS_CODE = "VIEW";
			_WebCells.DbName    = this.DbName;
			_WebCells.PageSize    = 15;
			_WebCells.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebCells.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_WebCells.OnInit(objHttpContext);

				if (_WebCells.USQL_CODE!="")
				{
					oWindow.AddWxfPanel(_WebCells);
				}

				oWindow.DbName = this.DbName;
			oWindow.OnInit(objHttpContext);
		}

		public void Render(HtmlTextWriter objTextWriter)
		{

#region Toolbar

			dbToolbar objdbToolbar   = new dbToolbar();
			objdbToolbar.BTNS_CODE   = "BASIC;";
			objdbToolbar.UID_CODE    = this.UID_CODE;
			objdbToolbar.Trans       = this.Trans;
			objdbToolbar.DATA_STATUS_CODE = _UID02803AEntity.DATA_STATUS_CODE;
			objdbToolbar.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objdbToolbar.ZZLOGON_SSD   = this.ZZLOGON_SSD;
			objdbToolbar.VIEW_MODE_CODE = this.ZZVIEW_MODE_CODE;

			ZZBTNS oZZBTNS         = new ZZBTNS();
			oZZBTNS.BTNS_CODE      = "UID02803A;Basic_VFS;BASIC_Actions";
			oZZBTNS.UID_CODE       = this.UID_CODE;
			oZZBTNS.BTN_CLASS_CODE = "FUNS";
			oZZBTNS.Trans          = this.Trans;
			oZZBTNS.ODTP_STATUS_CODE = objdbToolbar.ODTP_STATUS_CODE;
			oZZBTNS.DATA_STATUS_CODE = _UID02803AEntity.DATA_STATUS_CODE;
			oZZBTNS.ZZLOGON_LANG   = this.ZZLOGON_LANG;
			oZZBTNS.ZZLOGON_SSD    = this.ZZLOGON_SSD;
			oZZBTNS.VIEW_MODE_CODE = this.ZZVIEW_MODE_CODE;
			oZZBTNS.Process();

			ZZTrace.Debug(ZFILE_NAME,"oZZBTNS.BTNS.Count=["+oZZBTNS.BTNS.Count+"]");

			objdbToolbar.ActionsBTNS=oZZBTNS.BTNS;

			ZZBTNS oPRINTS           = new ZZBTNS();
			oPRINTS.BTNS_CODE        = "UID02803A;BASIC_Print";
			oPRINTS.UID_CODE         = this.UID_CODE;
			oPRINTS.BTN_CLASS_CODE   = "PRINT";
			oPRINTS.VIEW_MODE_CODE = this.ZZVIEW_MODE_CODE;
			oPRINTS.Trans            = this.Trans;
			oPRINTS.ODTP_STATUS_CODE = objdbToolbar.ODTP_STATUS_CODE;
			oPRINTS.DATA_STATUS_CODE = _UID02803AEntity.DATA_STATUS_CODE;
			oPRINTS.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			oPRINTS.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oPRINTS.Process();

			objdbToolbar.PrintBTNS=oPRINTS.BTNS;

			objdbToolbar.Process();

			objWebBTNS= objdbToolbar.XWebBTNS;
			oWindow.AddToolBar(objWebBTNS);
			oWindow.BTNS = objdbToolbar.BTNS;
#endregion

			objSORHDTM_USTAGE_CODE.Text=this.ZZVIEW_MODE_CODE;

			_STATUS_DATA["UID02803A","ZZVIEW_MODE_CODE"]   = this.ZZVIEW_MODE_CODE;
			_STATUS_DATA["UID02803A","ZZVIEW_STATUS_CODE"] = this.ZZVIEW_STATUS_CODE;

			oWindow.VIEW_STATUS_CODE  = this.ZZVIEW_STATUS_CODE;
			oWindow.VIEW_MODE_CODE  = this.ZZVIEW_MODE_CODE;

			_WebCells.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebCells.STATUS_CODE   = "VIEW";
			_WebCells.WXFLite       = this.Entity.Wxf;
			_WebCells.OperationMode = "EDIT";
			_WebCells.ZZLOGON_ID    = this.ZZLOGON_ID;
			_WebCells.Trans         = this.Trans;
			_WebCells.Process();

			oWindow.WindowsStatus = _STATUS_DATA;
			oWindow.UID_CODE      = "UID02803A";
			oWindow.Template      = "";
			oWindow.APP_PATH      = this.APP_PATH;
			ZZTrace.Debug(ZFILE_NAME,this.APP_PATH+"System\\templates\\");

			if (File.Exists(this.APP_PATH+"System\\templates\\"))
			{
				oWindow.Tmpl         = TmplManager.FromString(ZZGeneral.ReadStream(this.APP_PATH+"System\\templates\\").ToString());
			}else	if (File.Exists(this.APP_PATH+"System\\templates\\UID02803A.tpl"))
			{
				oWindow.Tmpl         = TmplManager.FromString(ZZGeneral.ReadStream(this.APP_PATH+"System\\templates\\UID02803A.tpl").ToString());
			}
			oWindow.Trans         = this.Trans;
			oWindow.Exceptions    = this.Exceptions;
			
			objXDeclareBlock.ZZLOGON_SSD=this.ZZLOGON_SSD;
			objXDeclareBlock.DbName=this.DbName;
			objXDeclareBlock.ZZLOGON_LANG  =this.ZZLOGON_LANG;
			objXDeclareBlock.Trans =this.Trans;
			objXDeclareBlock.Render(objTextWriter);

			oWindow.Render(objTextWriter);

			objTextWriter.WriteLine("<script type='text/javascript'>");
			objTextWriter.WriteLine("");

			objTextWriter.WriteLine("$(document).ready(function ()");
			objTextWriter.WriteLine("{");
			objTextWriter.WriteLine("var vModels = avalon.define(\"Fields\", function(vm) {");

			objTextWriter.WriteLine("vm.Variable={");
			objTextWriter.WriteLine("VIEW_STATUS_CODE=\'"+this.ZZVIEW_STATUS_CODE+"\',");
			objTextWriter.WriteLine("VIEW_MODE_CODE=\'"+this.ZZVIEW_MODE_CODE+"\',");
			objTextWriter.WriteLine("ZZLOGON_LANG=\'"+this.ZZLOGON_LANG+"\',");
			objTextWriter.WriteLine("ZZMODEL_DATA=\'"+this.ZZMODEL_DATA+"\'");
			objTextWriter.WriteLine("}");

			objTextWriter.WriteLine("vm.Models={");
			foreach (AComponent oElement in oXForm.Objects)
			{
				if  (oElement.TABLE_COLUMN_NAME!=""){
					objTextWriter.WriteLine(oElement.TABLE_COLUMN_NAME+":{");
					objTextWriter.WriteLine("Text:\""+Dot.StreamObject.Util.EscapeString(oElement.Text)+"\",");
					objTextWriter.WriteLine("Class:\""+oElement.ClassName+"\",");
					if (oElement.Readonly){
						objTextWriter.WriteLine("Readonly:true");
					}else{
						objTextWriter.WriteLine("Readonly:false");
					}
					objTextWriter.WriteLine("},");
					objTextWriter.WriteLine("");
				}
			}
			objTextWriter.WriteLine("};");
			objTextWriter.WriteLine("");
	
			objTextWriter.WriteLine("vm.Buttons={");
			foreach (WebImageButton oElement in objdbToolbar.XWebBTNS.WebButtons)
			{
				if  (oElement.TABLE_COLUMN_NAME!=""){
					objTextWriter.WriteLine(oElement.TABLE_COLUMN_NAME+":{");
					objTextWriter.WriteLine("Title:\""+oElement.Title+"\",");
					objTextWriter.WriteLine("ImageUrl:\""+oElement.ImageUrl+"\",");
					if (oElement.Readonly){
						objTextWriter.WriteLine("Class:\"dbutton\"");
					}else{
						objTextWriter.WriteLine("Class:\"abutton\"");
					}

					objTextWriter.WriteLine("},");
					objTextWriter.WriteLine("");
				}
			}
			objTextWriter.WriteLine("};");
			objTextWriter.WriteLine("");
	
			objTextWriter.WriteLine("});");
			objTextWriter.WriteLine("");
			objTextWriter.WriteLine("avalon.scan();");
			objTextWriter.WriteLine("});");
			objTextWriter.WriteLine("</script>");
			
			oXFinallyBlock.ZZLOGON_SSD=this.ZZLOGON_SSD;
			oXFinallyBlock.DbName=this.DbName;
			oXFinallyBlock.ZZLOGON_LANG  =this.ZZLOGON_LANG;
			oXFinallyBlock.UID_CODE  =this.UID_CODE;
			oXFinallyBlock.APP_PATH  =this.APP_PATH;
			oXFinallyBlock.Trans =this.Trans;
			oXFinallyBlock.Render(objTextWriter);

		}

		private XForm             oXForm;             
		private WebPanels         objWebPanels    = new WebPanels();
		private ZZDocsPermission  _DocsPermission = new ZZDocsPermission();
		private	XStatus           _STATUS_DATA    = new XStatus();
		private	WebLookup         _WebLookup      = new WebLookup();
		private Window            oWindow         = new Window();
		private WebBTNS           objWebBTNS      = new WebBTNS();
		private WebCells          _WebCells       = new WebCells();
		private XFinallyBlock   oXFinallyBlock    = new XFinallyBlock();
		private	XDeclareBlock   objXDeclareBlock  = new XDeclareBlock();

			private WebCaption objSORHDTM_USECURITY_CODE1 =new WebCaption();
					private WebCaption objSORHDTM_USECURITY_CODE2 =new WebCaption();
					private WebCaption objSORHDTM_USECURITY_CODE3 =new WebCaption();
					private WebCaption objSORHDTM_USECURITY_CODE4 =new WebCaption();
					private WebCaption objSORHDTM_USECURITY_CODE5 =new WebCaption();
					private WebCaption objSORHDTM_USECURITY_CODE6 =new WebCaption();
		
		private WebCaption  objSORHDTM_UZADD_DATE      = new WebCaption();
		private WebCaption  objSORHDTM_UZADD_USER      = new WebCaption();
		private WebCaption  objSORHDTM_UZCHG_DATE      = new WebCaption();
		private WebCaption  objSORHDTM_UZCHG_USER      = new WebCaption();
		private WebCaption  objSORHDTM_USECURITY_RIGHT = new WebCaption();
		private WebCaption  objSORHDTM_USTAGE_CODE     = new WebCaption();
		private WebHideBox  objDATA_VFS_UXDIR_CODE           = new WebHideBox();
		private WebCaption  objSORHDTM_XUID_CODE       = new WebCaption();

		private List<AComponent>  _ZZCDFElect     = new List<AComponent>();
		public List<LogisticException> Exceptions = new List<LogisticException>();

		private string  _APP_PATH           = "";
		private string  _ATVT_CODE          = "";
		private string  UID_CODE            = "UID02803A";
		private string  _DbName             = "";
		private string  _DATA_STATUS_CODE   = "NONE";
		private string  _ZZLOGON_LANG       = "";
		private string  _ZZLOGON_SSD        = "";
		private string  _ZZEventOpts        = "";
		private string  _ZZVIEW_MODE_CODE   = "";
		private string  _ZZVIEW_STATUS_CODE = "";
		private string  _ZZMODEL_DATA       = "";
		private string  _ZZEventStatus      = "";
		private string  _ZZEventMode        = "";
		private string  _ZZEventArgs        = "";
		private string  _ZZLOGON_ID         = "";
		private string  _lnk_RW_NO          = "-1";
		private string  _lnk_MODE           = "-1";

		private StreamContext _Trans;
		private Wxf            _Wxf                = new Wxf();
		private XConvert       _Convert            = new XConvert();
		private ZZCaptions     _Captions           = new ZZCaptions();
		private UID02803AE   _UID02803AEntity  = new UID02803AE();

		public UID02803AE Entity { get { return  _UID02803AEntity ; } set { _UID02803AEntity = value; }  }

		public string   lnk_MODE    { get { return _lnk_MODE;       } set { _lnk_MODE       = value; }  }
		public string   lnk_RW_NO   { get { return _lnk_RW_NO;      } set { _lnk_RW_NO      = value; }  }
		public string   ZZLookup    { get { return _WebLookup.Text; } set { _WebLookup.Text = value; }  }
		public Wxf      ZZWxf       { get { return _Wxf;            } set { _Wxf            = value; }  }
		public WebPanels ZZPanels   { get { return objWebPanels;    } set { objWebPanels    = value; }  }
		public WebCells CellsPanel  { get { return _WebCells;       } set { _WebCells       = value; }  }
		public XStatus  STATUS_DATA { get { return _STATUS_DATA;    } set { _STATUS_DATA    = value; }  }

		public string  DbName             { get { return _DbName;             } set { _DbName             = value; }  }
		public string  ZZLOGON_SSD        { get { return _ZZLOGON_SSD;        } set { _ZZLOGON_SSD        = value; }  }
		public string  ZZLOGON_ID         { get { return _ZZLOGON_ID;         } set { _ZZLOGON_ID         = value; }  }
		public string  ZZEventOpts        { get { return _ZZEventOpts;        } set { _ZZEventOpts        = value; }  }
		public string  ZZVIEW_MODE_CODE   { get { return _ZZVIEW_MODE_CODE;   } set { _ZZVIEW_MODE_CODE   = value; }  }
		public string  ZZVIEW_STATUS_CODE { get { return _ZZVIEW_STATUS_CODE; } set { _ZZVIEW_STATUS_CODE = value; }  }
		public string  ZZMODEL_DATA       { get { return _ZZMODEL_DATA;       } set { _ZZMODEL_DATA       = value; }  }
		public string  ZZEventStatus      { get { return _ZZEventStatus;      } set { _ZZEventStatus      = value; }  }
		public string  ZZEventMode        { get { return _ZZEventMode;        } set { _ZZEventMode        = value; }  }
		public string  ZZEventArgs        { get { return _ZZEventArgs;        } set { _ZZEventArgs        = value; }  }
		public string  ZZLOGON_LANG       { get { return _ZZLOGON_LANG;       } set { _ZZLOGON_LANG       = value; }  }
		public string  ATVT_CODE          { get { return _ATVT_CODE;          } set { _ATVT_CODE          = value; }  }
		public string  DATA_STATUS_CODE   { get { return _DATA_STATUS_CODE;   } set { _DATA_STATUS_CODE   = value; }  }
		public string  APP_PATH           { get { return _APP_PATH;           } set { _APP_PATH           = value; }  }

		public StreamContext  Trans              { get { return _Trans;           } set { _Trans           = value; }  }

#region screen element

					private WebTextBox objSORHDTM_SO_NO =new WebTextBox();

					private WebDigitBox objSORHDTM_ODTP_XREV =new WebDigitBox();

					private WebTextBox objSORHDTM_ODTP_STATUS =new WebTextBox();

					private WebTextBox objSORHDTM_ODTP_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_ODTP_CODEBrw =new WebBrowser();

					private WebTextBox objSORHDTM_COMP_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_COMP_CODEBrw =new WebBrowser();

					private WebTextBox objSORHDTM_SALES_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_SALES_CODEBrw =new WebBrowser();

					private WebTextBox objSORHDTM_BPN_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_BPN_CODEBrw =new WebBrowser();

					private WebTextBox objVARIABLE_BPN_NAME01 =new WebTextBox();

					private WebTextBox objSORHDTM_CUS_TERM =new WebTextBox();
    private WebBrowser objSORHDTM_CUS_TERMBrw =new WebBrowser();

					private WebDateBox objSORHDTM_SO_REQ_DATE =new WebDateBox();

					private WebTextBox objSORHDTM_CCY_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_CCY_CODEBrw =new WebBrowser();

					private WebTextBox objSORHDTM_PTERM_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_PTERM_CODEBrw =new WebBrowser();

					private WebTextBox objSORHDTM_CUS_ORD =new WebTextBox();

					private WebFloatBox objSORHDTM_XCHG_RATE =new WebFloatBox();

					private WebTextBox objSORHDTM_DELY_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_DELY_CODEBrw =new WebBrowser();

					private WebTextBox objSORHDTM_REGN_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_REGN_CODEBrw =new WebBrowser();

					private WebTextBox objSORHDTM_SVIA_CODE =new WebTextBox();
    private WebBrowser objSORHDTM_SVIA_CODEBrw =new WebBrowser();

					private WebTextBox objSORHDTM_CUS_REFX =new WebTextBox();

					private WebTextBox objSORHDTM_ORG_CTRY =new WebTextBox();

					private WebTextBox objSORHDTM_ORG_CERT =new WebTextBox();

					private WebFloatBox objSORHDTM_DISCOUNT_RATE =new WebFloatBox();

					private WebFloatBox objSORHDTM_TAX_RATE =new WebFloatBox();

					private WebMemoBox objSORHDTM_SO_ODTP_RMKS =new WebMemoBox();

#endregion
		const  string ZFILE_NAME   ="UID02803AV";
		const  string MUKI_EDITION ="MIN";

	}
}
